package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * kras/nras/braf的检测点位枚举
 *
 * @author HCG
 * @version 1.0
 * @date 2022-12-16
 */
@AllArgsConstructor
@Getter
public enum KnPositionEnum {

    ONE(1, "G12S/D"),
    TWO(2, "G12C/R*/V/A，G13C*"),
    THREE(3, "G13D"),
    FOUR(4, "A59T*,Q61K*"),
    FIVE(5, "Q61H/L*/R*/H*"),
    SIX(6, "K117N,A146T/V/P"),
    SEVEN(7, "G12D/S*"),
    EIGHT(8, "G13D*"),
    NINE(9, "G13R*/V*,G12C*/V*/A*"),
    TEN(10, "Q61R/K/L*/H*"),
    ELEVEN(11, "A146T*"),
    ZERO(0, "BRAF V600E");

    private Integer code;
    private String desc;

    public static KnPositionEnum getByCode(Integer code) {
        KnPositionEnum[] values = KnPositionEnum.values();
        for (KnPositionEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
